package com.vic.mvc.testsome.extend;

public class Son extends Father{

	private String name;
	
	private String remark;

	
	
	public Son(String name, String remark) {
		super();
		this.name = name;
		this.remark = remark;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	
	public static void main(String[] args) {
		Son son = new Son("jack", "some thing");
		test(son);
	}
	
	
	public static void test(Father father){
		System.out.println(father.getName());
	}
	
}

